﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AudioPlayerLib;
using WaveResources;

namespace SpotIt
{
    class AudioFiles
    {
        private static readonly AudioFiles instance = new AudioFiles();
        private int size;
        private AudioFiles() { size = 0; }
        public List<AudioPlayer> theFiles = new List<AudioPlayer>();
        public void addFile(string fileName, bool loops)
        {
               size++;
              theFiles.Add(new AudioPlayer(WaveResourceAssembly.Assembly,"WaveResources",fileName,loops));
        }
        public int getSize()
        {
            return size;
        }
        public static AudioFiles Instance
        {
            get
            {
                return instance;
            }
        }
    }
}
